package com.zhang.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.order.dto.AppraiseSearchDTO;
import com.zhang.order.entity.GoodsAppraise;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.order.vo.AppraiseCountVO;
import com.zhang.order.vo.OrderAppraiseVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品评价表 服务类
 * </p>
 *
 * @author 创世神
 * @since 2024-04-20
 */
public interface IGoodsAppraiseService extends IService<GoodsAppraise> {

    void saveAppraise(List<OrderAppraiseVo> orderAppraiseVos);

    Page listBySkuId(String skuId, int pageNum, int pageSize);

    AppraiseCountVO getCountBySkuId(AppraiseSearchDTO dto);
}
